
*********************************************************************
*	On What Moves (Spending) Mood?                                  *
*   The Nature and Origins of Parallel Public Preferences           *
*                                                                   *
* 	Steven M. Van Hauwaert, ESPOL-LAB & Radboud University          *
*	Christopher Wlezien, University of Texas at Austin              *
* 	Ryan E. Carlin, Georgia State University                        *
*********************************************************************

use "/[pathway]/what moves mood panelled 20250507.dta"


****************************************************
// TABLE 1: PROPERTIES OF MASS PREFERENCES //
****************************************************


tabstat pref_raw if year < 2020, by(domain) stat(n mean sd) columns(stat)


****************************************************
// TABLE 2: MEAN SPENDING //
****************************************************


tabstat treal_APP_domain if year < 2020, by(domain) stat(n mean sd)


****************************************************
// TABLE 3: POOLED PUBLIC RESPONSIVENESS MODEL //
****************************************************


xtreg pref_int l.pref_int treal_APP_domain treal_APP_total gdp_trill if year < 2020, fe

xtreg pref_int l.pref_int treal_APP_domain treal_APP_total gdp_trill president if year < 2020, fe


* To subsequently test if the two spending variables are significantly different from one another

test treal_APP_domain = treal_APP_total


*********************************************************
// TABLE 4: DOMAIN-SPECIFIC PUBLIC RESPONSIVENESS MODEL //
*********************************************************


regress pref_int l.pref_int  treal_APP_total gdp_trill president if domainid == 1 & year < 2020
durbina2

regress pref_int l.pref_int   treal_APP_total gdp_trill president if domainid == 3 & year < 2020
durbina2

regress pref_int l.pref_int   treal_APP_total gdp_trill president if domainid == 4 & year < 2020
durbina2

regress pref_int l.pref_int  treal_APP_total gdp_trill president if domainid == 5 & year < 2020
durbina2

* When we include the Gini coefficient for the welfare equation (domain 5):

regress pref_int l.pref_int treal_APP_total gdp_trill president gini if domainid == 5 & year < 2020


****************************************************
// TABLE 5: REDUCED POOLED MODEL //
****************************************************


xtreg pref_int treal_APP_total gdp_trill president if year < 2020, fe

xtreg pref_int l.pref_int treal_APP_total gdp_trill president if year < 2020, fe


* To get the standardised coefficients:

regress pref_int treal_APP_total gdp_trill president i.domainid if year < 2020, beta


****************************************************

// SUPPLEMENTARY MATERIALS //

****************************************************


****************************************************
// A. TIME-SERIES DIAGNOSTICS //
****************************************************


// For Table A1.a//

xtreg d.pref_int l.pref_int if year < 2020, fe
xtreg d.pref_int l.pref_int l.d.pref_int time_int if year < 2020, fe


// For Table A1.c//


xtunitroot fisher pref_int if year < 2020, dfuller lags(1) 
xtunitroot fisher pref_int if year < 2020, dfuller lags(1) drift
xtunitroot fisher pref_int if year < 2020, dfuller lags(1) demean
xtunitroot fisher pref_int if year < 2020, dfuller lags(1) drift demean
xtunitroot fisher pref_int if year < 2020, dfuller lags(1) trend demean


// For Table A1.d//


xtunitroot fisher pref_raw if year < 2020, dfuller lags(1) 
xtunitroot fisher pref_raw if year < 2020, dfuller lags(1) drift
xtunitroot fisher pref_raw if year < 2020, dfuller lags(1) demean
xtunitroot fisher pref_raw if year < 2020, dfuller lags(1) drift demean
xtunitroot fisher pref_raw if year < 2020, dfuller lags(1) trend demean


// For Table A2//


dfuller pref_int if domainid==3 & year < 2020, regr 
dfuller pref_int if domainid==1 & year < 2020, regr 
dfuller pref_int if domainid==4 & year < 2020, regr lags(1)
dfuller pref_int if domainid==5 & year < 2020, regr 


// For Table A4a//

//First panel//

kpss pref_int if domainid==3 & year < 2020, auto
kpss pref_int if domainid==1 & year < 2020, auto
kpss pref_int if domainid==4 & year < 2020, auto
kpss pref_int if domainid==5 & year < 2020, auto


//Second panel//

kpss pref_int if domainid==3 & year < 2020, auto notrend
kpss pref_int if domainid==1 & year < 2020, auto notrend
kpss pref_int if domainid==4 & year < 2020, auto notrend
kpss pref_int if domainid==5 & year < 2020, auto notrend


****************************************************
// C. MODELS EXCLUDING EDUCATION //
****************************************************


// TABLE C.1


xtreg pref_int l.pref_int treal_APP_domain treal_APP_total_excledu gdp_trill if year < 2020, fe

xtreg pref_int l.pref_int treal_APP_domain treal_APP_total_excledu gdp_trill president if year < 2020, fe


****************************************************
// D. ALTERNATIVE MODELS OF NET PREFERENCES BY DOMAIN //
****************************************************


// TABLE D.2

regress pref_int l.pref_int  treal_APP_domain gdp_trill president if domainid == 1 & year < 2020
durbina2

regress pref_int l.pref_int   treal_APP_domain gdp_trill president if domainid == 3 & year < 2020
durbina2

regress pref_int l.pref_int   treal_APP_domain gdp_trill president if domainid == 4 & year < 2020
durbina2

regress pref_int l.pref_int  treal_APP_domain gdp_trill president if domainid == 5 & year < 2020
durbina2


****************************************************
// E. DISTRIBUTED LAG MODELS //
****************************************************


// Table E.1


xtreg pref_int treal_APP_total l.treal_APP_total gdp_trill l.gdp_trill president l.president if year < 2020, fe

xtreg pref_int treal_APP_total l.treal_APP_total l2.treal_APP_total gdp_trill l.gdp_trill l2.gdp_trill president l.president l2.president if year < 2020, fe

xtreg pref_int treal_APP_total l.treal_APP_total l2.treal_APP_total l3.treal_APP_total gdp_trill l.gdp_trill l2.gdp_trill l3.gdp_trill president l.president l2.president l3.president if year < 2020, fe

xtreg pref_int treal_APP_total l.treal_APP_total l2.treal_APP_total l3.treal_APP_total l4.treal_APP_total gdp_trill l.gdp_trill l2.gdp_trill l3.gdp_trill l4.gdp_trill president l.president l2.president l3.president l4.president if year < 2020, fe

xtreg pref_int treal_APP_total l.treal_APP_total l2.treal_APP_total l3.treal_APP_total l4.treal_APP_total l5.treal_APP_total gdp_trill l.gdp_trill l2.gdp_trill l3.gdp_trill l4.gdp_trill l5.gdp_trill president l.president l2.president l3.president l4.president l5.president if year < 2020, fe


****************************************************
// F. MODELS EXCL. PARTY OF THE PRESIDENT //
****************************************************


// Table F.1

regress pref_int l.pref_int  treal_APP_total gdp_trill if domainid == 1 & year < 2020
durbina2

regress pref_int l.pref_int   treal_APP_total gdp_trill if domainid == 3 & year < 2020
durbina2

regress pref_int l.pref_int   treal_APP_total gdp_trill if domainid == 4 & year < 2020
durbina2

regress pref_int l.pref_int  treal_APP_total gdp_trill if domainid == 5 & year < 2020
durbina2


// Table F.2


xtreg pref_int l.pref_int treal_APP_total gdp_trill if year < 2020, fe

xtreg pref_int treal_APP_total gdp_trill if year < 2020, fe


****************************************************
// G. MODELS WITH INTERACTIONS //
****************************************************


// Table G.1


regress pref_int l.pref_int c.treal_APP_domain##i.domainid c.treal_APP_total##i.domainid i.president##i.domainid c.gdp_trill##i.domainid if year < 2020

regress pref_int l.pref_int c.treal_APP_domain##ib3.domainid c.treal_APP_total##ib3.domainid i.president##ib3.domainid c.gdp_trill##ib3.domainid if year < 2020

regress pref_int l.pref_int c.treal_APP_domain##ib4.domainid c.treal_APP_total##ib4.domainid i.president##ib4.domainid c.gdp_trill##ib4.domainid if year < 2020

regress pref_int l.pref_int c.treal_APP_domain##ib5.domainid c.treal_APP_total##ib5.domainid i.president##ib5.domainid c.gdp_trill##ib5.domainid if year < 2020


// Table G.2


regress pref_int l.pref_int treal_APP_domain treal_APP_total c.gdp_trill##i.domainid president if year < 2020

regress pref_int l.pref_int treal_APP_domain treal_APP_total c.gdp_trill##ib3.domainid president if year < 2020

regress pref_int l.pref_int treal_APP_domain treal_APP_total c.gdp_trill##ib4.domainid president if year < 2020

regress pref_int l.pref_int treal_APP_domain treal_APP_total c.gdp_trill##ib5.domainid president if year < 2020


// Table G.3

regress pref_int l.pref_int treal_APP_domain c.treal_APP_total##i.domainid gdp_trill president if year < 2020

regress pref_int l.pref_int treal_APP_domain c.treal_APP_total##ib3.domainid gdp_trill president if year < 2020

regress pref_int l.pref_int treal_APP_domain c.treal_APP_total##ib4.domainid gdp_trill president if year < 2020

regress pref_int l.pref_int treal_APP_domain c.treal_APP_total##ib5.domainid gdp_trill president if year < 2020


// Table G.4

regress pref_int l.pref_int c.treal_APP_domain##i.domainid treal_APP_total gdp_trill president if year < 2020

regress pref_int l.pref_int c.treal_APP_domain##ib3.domainid treal_APP_total gdp_trill president if year < 2020

regress pref_int l.pref_int c.treal_APP_domain##ib4.domainid treal_APP_total gdp_trill president if year < 2020

regress pref_int l.pref_int c.treal_APP_domain##ib5.domainid treal_APP_total gdp_trill president if year < 2020


// Table G.5

regress pref_int l.pref_int treal_APP_domain treal_APP_total i.president##i.domainid gdp_trill if year < 2020

regress pref_int l.pref_int treal_APP_domain treal_APP_total i.president##ib3.domainid gdp_trill if year < 2020

regress pref_int l.pref_int treal_APP_domain treal_APP_total i.president##ib4.domainid gdp_trill if year < 2020

regress pref_int l.pref_int treal_APP_domain treal_APP_total i.president##ib5.domainid gdp_trill if year < 2020

